package Inherit;

public class Cat2 extends Animal2{

    public Cat2(){}

    public Cat2(int age,String color){
        super(age,color);
    }
    @Override
    public void eat(String something) {
        System.out.println(getAge()+"岁的"+getColor()+"的猫，眯着眼睛侧着头"+something);
    }

    public void catMouse(){
        System.out.println("猫抓老鼠");
    }

}
